// 绑定订单状态列表
EapTools.doAction("orderEnumController.do?getOrderStatus", {}, false, function(
		data) {
	var selectorArray = [];
	selectorArray.push("<option value=''>全部</option>");
	$.each(data.attributes, function(key, value) {
		selectorArray.push("<option value='", key, "'>", value,
				"</option>");
	}); 

	$("select[code='status']").append(selectorArray.join(""));
	$("select[id='status']").append(selectorArray.join(""));
});

//绑定支付方式列表
EapTools.doAction("orderEnumController.do?getPayMethod", {}, false, function(
		data) {
	var selectorArray = [];
	selectorArray.push("<option value=''>---请选择---</option>");
	$.each(data.attributes, function(key, value) {
		selectorArray.push("<option value='", key, "'>", value,
				"</option>");
	}); 

	$("select[code='payMethod']").append(selectorArray.join(""));
	$("select[id='payMethod']").append(selectorArray.join(""));
});

//绑定是否需要保温箱列表
EapTools.doAction("orderEnumController.do?getNeedWarmBox", {}, false, function(
		data) {
	var selectorArray = [];
	selectorArray.push("<option value=''>---请选择---</option>");
	$.each(data.attributes, function(key, value) {
		selectorArray.push("<option value='", key, "'>", value,
				"</option>");
	}); 

	$("select[code='needWarmBox']").append(selectorArray.join(""));
	$("select[id='needWarmBox']").append(selectorArray.join(""));
});

//绑定配送人员名称列表
EapTools.doAction("deliveryManController.do?findData",
		{}, false, function(data) {
			deliveryManList = data;
			var selectorArray = [];
			selectorArray.push("<option value=''>---请选择---</option>");
			$.each(data, function(index, element) {
				selectorArray.push("<option value='", element.id, "'>", element.delName,
						"</option>");
			}); 

			$("select[code='deliveryManName']").append(selectorArray.join(""));
			$("select[id='deliveryManName']").append(selectorArray.join(""));
});



